package cn.net.withub.dataCollector.web.model;


import java.util.List;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;

//name可以指定在XmlRootElement上,也可以指定在XmlType上
//@XmlRootElement(name = "RESPONSE")
@XmlRootElement(name = "RESPONSE")
@XmlType(name = "RESPONSE", propOrder = {"CODE", "MSG", "ysfzList"})
@XmlSeeAlso({XMLYsResult.class})
public class XMLYsResult {

    private Integer CODE = 200;
    private String MSG = "成功";
    private List<XMLYsFz> ysfzList;
    //private XMLYsFz xmlYsFz;

    public XMLYsResult() {
    }

    public XMLYsResult(Integer CODE, String MSG, List<XMLYsFz> ysfzList) {
        this.CODE = CODE;
        this.MSG = MSG;
        this.ysfzList = ysfzList;
    }

    public Integer getCODE() {
        return CODE;
    }

    public void setCODE(Integer CODE) {
        this.CODE = CODE;
    }

    public String getMSG() {
        return MSG;
    }

    public void setMSG(String MSG) {
        this.MSG = MSG;
    }

    @XmlElement(name = "GROUP")
    public List<XMLYsFz> getYsfzList() {
        return ysfzList;
    }

    public void setYsfzList(List<XMLYsFz> ysfzList) {
        this.ysfzList = ysfzList;
    }

    @Override
    public String toString() {
        return "RESPONSE{" +
                "CODE=" + CODE +
                ", MSG='" + MSG + '\'' +
                ", ysfzList=" + ysfzList +
                '}';
    }
}


